<div class='menuGeral'>
<ul id="menu-7">
<?php
foreach ($modules as $file){
    if($file == 'pages'){
        continue;
    }
    $method = "dataGrid";
    $class = "";
    $currentModuleName = $this->Session->read('currentModuleName');
    if($currentModuleName == $file){
        $class = "active";
    }
    echo "<li><a href='{$this->Html->url(array('controller' => $file, 'action'=>$method))}' class='{$class}' ><div class='icon-".$this->Html->getModuleIcon($file)."' style='padding-left: 18px; height: 16px;'>{$file}</div></a></li>";
}
?>
</ul>
</div>
